﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WCFContracts;
using TrainingWorkshop.IDAL;

namespace WCFServices
{
    /// <summary>
    /// Author:Sissi-Zeng
    /// Date:2012-8-28 20:00
    /// Class ProjectBService provides a set of services to client.
    /// In this part, ProjectBService implements IProjectService methods in TeacherBU,which is a service contract
    /// </summary>
    public partial class ProjectBService : IProjectBService
    {
       /// <summary>
       /// Get all teachers from factory
       /// </summary>
       /// <returns>List of Teacher</returns>
        public List<TrainingWorkshop.Model.Teacher> GetTeachers()
        {
            ITeacherRepository teacherRep = factory.CreateTeacherRepository();
            return teacherRep.SelectAll();
        }
    }
}
